3.2.9 \(\int \frac {1}{\sqrt {b \cos (c+d x)}} \, dx\) [109]

Optimal. Leaf size=38 \[ \frac {2 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {b \cos (c+d x)}} \]

[Out]

2*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d*x+c)^(1/2)/d/(b*
cos(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2721, 2720} \begin {gather*} \frac {2 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {b \cos (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[b*Cos[c + d*x]],x]

[Out]

(2*Sqrt[Cos[c + d*x]]*EllipticF[(c + d*x)/2, 2])/(d*Sqrt[b*Cos[c + d*x]])

Rule 2720

Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ
[{c, d}, x]

Rule 2721

Int[((b_)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Dist[(b*Sin[c + d*x])^n/Sin[c + d*x]^n, Int[Sin[c + d*x]
^n, x], x] /; FreeQ[{b, c, d}, x] && LtQ[-1, n, 1] && IntegerQ[2*n]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {b \cos (c+d x)}} \, dx &=\frac {\sqrt {\cos (c+d x)} \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{\sqrt {b \cos (c+d x)}}\\ &=\frac {2 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {b \cos (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 38, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {b \cos (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[b*Cos[c + d*x]],x]

[Out]

(2*Sqrt[Cos[c + d*x]]*EllipticF[(c + d*x)/2, 2])/(d*Sqrt[b*Cos[c + d*x]])

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.08, size = 54, normalized size = 1.42

method result size
default \(\frac {2 \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \mathrm {am}^{-1}\left (\frac {d x}{2}+\frac {c}{2}| \sqrt {2}\right )}{d \sqrt {b \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}}\) \(54\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*cos(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

2/d/(b*(2*cos(1/2*d*x+1/2*c)^2-1))^(1/2)*(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)*InverseJacobiAM(1/2*d*x+1/2*c,2^(1/2
))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate(1/sqrt(b*cos(d*x + c)), x)

________________________________________________________________________________________

Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.09, size = 60, normalized size = 1.58 \begin {gather*} \frac {-i \, \sqrt {2} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )}{b d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

(-I*sqrt(2)*sqrt(b)*weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c)) + I*sqrt(2)*sqrt(b)*weierstrassP
Inverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)))/(b*d)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {b \cos {\left (c + d x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(d*x+c))**(1/2),x)

[Out]

Integral(1/sqrt(b*cos(c + d*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(1/sqrt(b*cos(d*x + c)), x)

________________________________________________________________________________________

Mupad [B]
time = 0.19, size = 33, normalized size = 0.87 \begin {gather*} \frac {2\,\sqrt {\cos \left (c+d\,x\right )}\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d\,\sqrt {b\,\cos \left (c+d\,x\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*cos(c + d*x))^(1/2),x)

[Out]

(2*cos(c + d*x)^(1/2)*ellipticF(c/2 + (d*x)/2, 2))/(d*(b*cos(c + d*x))^(1/2))

________________________________________________________________________________________